package com.ctim.dao.user;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * @author Wangwei
 * @date 2017/6/9
 * @desc
 */
@Repository
public class DemoDao {

    @Autowired
    @Qualifier("sqlSession")
    private SqlSessionTemplate sqlSession;

    public void insert(String content) {
        sqlSession.insert("test.demo", content);
    }

}
